<template>
  <div>
    <el-row>
      <el-col :span="12">
        <el-card class="box-card">
          <sysdictHome @rowclick="refreshDetail($event)" />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card class="box-card">
          <sysdictdetailHome :key="pid" :dictId="pid" />
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import sysdictHome from "./sysdictHome.vue";
import sysdictdetailHome from "../sysdictdetail/sysdictdetailHome.vue";

export default {
  data() {
    return {
      pid: ""
    };
  },
  components: {
    sysdictHome,
    sysdictdetailHome
  },
  methods: {
    refreshDetail(item) {
      this.pid = item.oid;
    }
  }
};
</script>

<style scoped></style>
